<?php include $this->admin_tpl('meta', 'admin');?>
<title>修改资料</title>
</head>
<body>
<article class="page-container">
<div class="formdoby_info"> 
	<form action="" method="post" onsubmit="return check_all()">
	  <fieldset>
		<legend>基本信息</legend>
			<table class="table table-border yzmcms_table">	
				<tr>
					<td width="100">姓名</td> 
					<td width="200"><?php echo $data['name'];?>（<?php echo $data['sex'];?>，<?php echo $data['age'];?>岁）</td>
					<td width="150">籍贯</td>
					<td><?php echo $data['native_place'];?></td>
				</tr>	
				<tr>
					<td>入职时间</td>
					<td>
					<?php echo date('Y-m-d',$data['in_time']);?>
					</td>
					<td>是否离职（离职时间）</td>
					<td>
					<?php echo $data['status']==1 ? '在职' : '离职'.date('Y-m-d',$data['out_time']);?>
					</td>
				</tr>				
				<tr>
					<td>部门（岗位）</td>
					<td>
					<?php echo department($data['department_id'])?>（<?php echo $data['position_name'];?>）
					</td>
					<td>电话</td>
					<td>
						<span class="f-l"><?php echo $data['mobile'];?></span>
						<span class="f-r">
						<a href="tel:<?php echo $data['mobile'];?>" class="btn btn-success radius" style="height:20px;width:25px;text-align:center;font-size:12px;line-height:18px;padding:0;"><i class="yzm-iconfont yzm-icondianhua"></i></a>
						</span>
					</td>
				</tr>	
				<tr>
					<td>工龄</td> 
					<td><?php echo $data['years']?>年</td>
					<td>年假（过期时间）</td> 
					<td>
					<?php if($data['position_leave_days']<1){?>
					无年假
					<?php }elseif($data['years']>=1){?>
					剩<?php echo $data['leave_days'];?>天(<?php echo date('y-m-d',$data['leave_expire'])?>)
					<?php }else{ ?>
					<?php echo $data['leave_days'];?>天(工龄不够)
					<?php }?>
				</td>
				</tr>
			</table>
	  </fieldset>
	  
	  <fieldset>
		<legend>薪资待遇</legend>
			<table class="table table-border yzmcms_table">	
				<tr>
					<td width="100">工资</td> 
					<td width="200"><?php echo $data['money'];?>元/月</td>
					<td width="150">房补</td>
					<td><?php echo $data['housing_money']?$data['housing_money'].'元/月':'无';?></td>
				</tr>	
				<tr>
					<td>餐补</td>
					<td>
					<?php echo $data['meal_money'] ? $data['meal_money'].'元/月' : '无';?>
					</td>
					<td>是否购买社保</td>
					<td>
					<?php echo $data['is_ss']==1 ? '已购买' : '未购买';?>
					</td>
				</tr>
				<?php if($data['is_second']){?>
				<tr>
					<td>双轨制备注</td>
					<td colspan="3">
					<?php echo $data['remark'];?>
					</td>
				</tr>
				<?php }?>
				<tr>
					<td>银行名称</td>
					<td>
					<?php echo $data['bank_name'] ? $data['bank_name'] : '无';?>
					</td>
					<td>银行账号</td>
					<td>
					<?php echo $data['bank_code'];?>（<?php echo $data['bank_account']?>）
					</td>
				</tr>
			</table>
	  </fieldset>
	  
	  <fieldset>
		<legend>其他信息</legend>
			<table class="table table-border yzmcms_table">
				<tr>
					<td width="100">身份证号</td> 
					<td width="200"><?php echo $data['card_id'];?></td>
					<td width="150">地址</td>
					<td><?php echo $data['address'];?></td>
				</tr>
				<tr>
					<td>紧急联系人</td> 
					<td><?php echo $data['re_name'];?></td>
					<td>联系人电话</td>
					<td>
						<span class="f-l"><?php echo $data['re_mobile'];?></span>
						<span class="f-r">
						<a href="tel:<?php echo $data['re_mobile'];?>" class="btn btn-success radius" style="height:20px;width:25px;text-align:center;font-size:12px;line-height:18px;padding:0;"><i class="yzm-iconfont yzm-icondianhua"></i></a>
						</span>
					</td>
				</tr>
				<tr>
					<td>学历</td> 
					<td><?php echo $data['education'];?></td>
					<td>专业</td>
					<td><?php echo $data['major']?$data['major']:'无';?></td>
				</tr>
			</table>
	  </fieldset>
	</form>		
</div>
</article>
<?php include $this->admin_tpl('footer', 'admin');?> 
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/laydate/1.1/laydate.js"></script>
<script type="text/javascript" src="<?php echo STATIC_URL;?>js/yzm-address.js"></script>
<script type="text/javascript">

</script> 
</body>
</html>